# ==================== 服务器配置 ====================
HOST = "0.0.0.0"
PORT = 8000
DEBUG = False
RELOAD = True

# ==================== API密钥配置 ====================
API_KEY = "123"


# ==================== 模型配置 ====================
DEFAULT_MODEL_PROVIDER = "doubao"

# ==================== AI提示词配置 ====================
# 系统提示词，用于指导AI的行为
SYSTEM_PROMPT = """你是一个智能助手，能够帮助用户解答问题、提供信息和执行各种任务。
你可以使用工具来获取实时信息或执行特定操作。
请用中文回答用户的问题。


"""




# ==================== 初始化控制配置 ====================
# 控制是否初始化ASR语音识别模型
ENABLE_ASR_MODEL = True
# 控制是否初始化MCP工具
ENABLE_MCP_TOOLS = True
# ==================== 大模型配置 ====================
# DashScope 配置
DASHSCOPE_API_KEY = "your_dashscope_api_key_here"
DASHSCOPE_BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1"
DASHSCOPE_DEFAULT_MODEL = "qwen-plus"

# DeepSeek 配置
DEEPSEEK_API_KEY = "your_deepseek_api_key_here"
DEEPSEEK_BASE_URL = "https://api.deepseek.com/v1"
DEEPSEEK_DEFAULT_MODEL = "deepseek-chat"

# 豆包(Doubao)配置
DOUBAO_API_KEY = "your_deepseek_api_key_here"
DOUBAO_BASE_URL = "https://ark.cn-beijing.volces.com/api/v3"
DOUBAO_DEFAULT_MODEL = "deepseek-v3-1-terminus"#doubao-1-5-vision-pro-32k-250115   doubao-1.5-vision-lite-250315   deepseek-v3-1-terminus



# ==================== 模型配置字典 ====================
MODEL_CONFIGS = {
    "dashscope": {
        "api_key": DASHSCOPE_API_KEY,
        "base_url": DASHSCOPE_BASE_URL,
        "default_model": DASHSCOPE_DEFAULT_MODEL
    },
    "deepseek": {
        "api_key": DEEPSEEK_API_KEY,
        "base_url": DEEPSEEK_BASE_URL,
        "default_model": DEEPSEEK_DEFAULT_MODEL
    },
    "doubao": {
        "api_key": DOUBAO_API_KEY,
        "base_url": DOUBAO_BASE_URL,
        "default_model": DOUBAO_DEFAULT_MODEL
    }
}

# ==================== 当前使用的模型配置 ====================
# 根据默认模型提供商获取当前配置
CURRENT_MODEL_CONFIG = MODEL_CONFIGS.get(DEFAULT_MODEL_PROVIDER, MODEL_CONFIGS["doubao"])

# 导出当前使用的配置
OPENAI_BASE_URL = CURRENT_MODEL_CONFIG["base_url"]
OPENAI_API_KEY = CURRENT_MODEL_CONFIG["api_key"]
OPENAI_MODEL = CURRENT_MODEL_CONFIG["default_model"]

# ==================== 缓存配置 ====================
CACHE_MAX_SIZE = 100

# ==================== 日志配置 ====================
LOG_LEVEL = "INFO"


